package cn.justforchris.system.mapper;

import cn.justforchris.system.domain.Permission;
import cn.justforchris.system.query.PermissionQuery;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper {
    void insertPermission(Permission permission);

    void deletePermission(Long id);

    void patchDelete(Long[] ids);

    void updatePermission(Permission permission);

    Permission getPermissionById(Long id);

    List<Permission> getAll();

    List<Permission> queryPage(PermissionQuery queryPage);

    Permission selectBySn(String permissionSn);


}
